
package com.ruolin.micro.gateway.guide.consumer;

import com.ruolin.micro.gateway.guide.api.EchoService;
import org.apache.dubbo.config.ApplicationConfig;
import org.apache.dubbo.config.ReferenceConfig;
import org.apache.dubbo.config.RegistryConfig;

public class DubboConsumer {
//    public static void main(String[] args) throws InterruptedException {
//        ReferenceConfig<EchoService> reference = new ReferenceConfig<>();
//        reference.setApplication(new ApplicationConfig("dubbo-service-consumer"));
//        reference.setRegistry(new RegistryConfig("nacos://218.78.55.64:8848"));
//        reference.setInterface(EchoService.class);
//        reference.setVersion("1.0");
//        EchoService service = reference.get();
//        String message = service.hello("dubbo");
//        System.out.println(message);
//        //   new CountDownLatch(1).await();
//    }
}
